package com.zzj.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author zzj
 * @since 2023-05-12
 */
@TableName("picc_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 微信凭证ID
     */
    private String openId;

    private String username;

    private String password;

    private String avatar;

    /**
     * 0超级管理员
1游客
2病人
3护士
4专家
5管理员
33护士待审核
44专家待审核
55管理员待审核
666审核不通过
     */
    private Integer status;

    private String email;

    private String phone;

    @TableField(fill = FieldFill.INSERT)
    private String registerTime;

    private String registerIp;

    private String loginIp;

    private String loginTime;

    /**
     * 登录属地
     */
    private String loginAddress;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(String registerTime) {
        this.registerTime = registerTime;
    }

    public String getRegisterIp() {
        return registerIp;
    }

    public void setRegisterIp(String registerIp) {
        this.registerIp = registerIp;
    }

    public String getLoginIp() {
        return loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp;
    }

    public String getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(String loginTime) {
        this.loginTime = loginTime;
    }

    public String getLoginAddress() {
        return loginAddress;
    }

    public void setLoginAddress(String loginAddress) {
        this.loginAddress = loginAddress;
    }

    @Override
    public String toString() {
        return "User{" +
        "id = " + id +
        ", openId = " + openId +
        ", username = " + username +
        ", password = " + password +
        ", avatar = " + avatar +
        ", status = " + status +
        ", email = " + email +
        ", phone = " + phone +
        ", registerTime = " + registerTime +
        ", registerIp = " + registerIp +
        ", loginIp = " + loginIp +
        ", loginTime = " + loginTime +
        ", loginAddress = " + loginAddress +
        "}";
    }
}
